class RegisterModel {
  int code;
  String data;
  String message;

  RegisterModel({this.code, this.data, this.message});

  RegisterModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'];
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data;
    }
    data['message'] = this.message;
    return data;
  }
}

class Register {
  String name;
  String phone;
  String pass;
  String code;

  Register({this.name, this.pass, this.phone, this.code});

  Register.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    phone = json['phone'];
    pass = json['pass'];
    code = json['code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['phone'] = this.phone;
    data['pass'] = this.pass;
    data['code'] = this.code;
    return data;
  }
}
